<?php
class ChatLine extends ChatBase {
    protected $authorID = '', $gravatar = '', $receiver = '', $text = '', $time = '';
    public function postMessage() {
        echo "AutorID:    ".$this->authorID." 
        Gravatar: ".$this->gravatar." 
        Receiver: ".$this->receiver."
        Text:     ".$this->text."
        Time:     ".$this->time.""; 

        DB::query("INSERT INTO chat_text (ID_user, gravatar, receiver, text, time)
                VALUES (
                    '".DB::esc($this->authorID)."',
                    '".DB::esc($this->gravatar)."',
                    '".DB::esc($this->receiver)."',
                    '".DB::esc($this->text)."',
                    '".DB::esc($this->time)."'
        )");
    }
}
?>